package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.SUBMIT_APP_INFO;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class SubmitAppInfoApi implements IRequestApi, IRequestType {

    private ReqSubmitAppInfoBean overripe;

    public SubmitAppInfoApi(ReqSubmitAppInfoBean overripe) {
        this.overripe = overripe;
    }

    @NonNull
    @Override
    public String getApi() {
        return SUBMIT_APP_INFO;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqSubmitAppInfoBean {
        private ArrayList<MeritoriousBean> meritorious;

        public ReqSubmitAppInfoBean(ArrayList<MeritoriousBean> meritorious) {
            this.meritorious = meritorious;
        }
    }

    public static final class MeritoriousBean {

        private String obscenity;
        private String rhombic;
        private String allochthonous;
        private String eryngium;
        private String unbid;
        private String miscarry;
        private String prograde;
        private String roadlouse;

        public MeritoriousBean(String obscenity, String rhombic, String allochthonous, String eryngium, String unbid, String miscarry, String prograde, String roadlouse) {
            this.obscenity = obscenity;
            this.rhombic = rhombic;
            this.allochthonous = allochthonous;
            this.eryngium = eryngium;
            this.unbid = unbid;
            this.miscarry = miscarry;
            this.prograde = prograde;
            this.roadlouse = roadlouse;
        }
    }

}


